package xin.yangshuai.juc01.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import xin.yangshuai.juc01.service.HttpThreadService;

/**
 * HttpThreadController
 *
 * @author shuai
 * @date 2025/1/17
 */
@RestController
@RequestMapping("httpThread")
public class HttpThreadController {

    @Autowired
    private HttpThreadService httpThreadService;

    @GetMapping("threadBlock")
    public String threadBlock() {
        httpThreadService.threadBlock();
        return "hello world";
    }
}
